Skip to main content
Version: 1.0.2

ManageData

The ManageData API allows users to set or modify a key-value pair (entry) associated with their Stellar account. This data can be used to store various types of information.

Method: POST

{{URL}}/jsonrpc

Headers

NameValue
Content-Typeapplication/json

Example

Response Parameters
ParameterDescription

SourceAccount

Object

PublicKey

Mandatory

String

The public key of the account for which the data entry is being managed.

Ex: "GCPLZXWATKYY3OXXHDOU3TSIUNZA5ZVBMM6P6ONGZQJHICXSFGFWNBPW"

PrivateKey

Mandatory

String

The private key associated with the source account for authentication.

Ex: ""

Asset

Object

Code

Optional

String

The code representing the asset for which the data entry is being managed.

Ex: "XDUS"

IssuserKey

Optional

String

The public key of the account that issued the asset.

Ex: "GAHQYF2BNR5PGXPMWHOPXQA2Y3T2HVBBBF7ON7D2427T7FPZRMIRE6XD"

EntryName

Mandatory

String

The name or key of the data entry to be set or modified. This name serves as an identifier for the data value.

Ex: "abcd"

EntryValue

Mandatory

String

The value to be associated with the specified entry name. This can be any string data that you want to store in the account.

Ex: "1234"

Body


{
"SourceAccount": {
"PublicKey": "GCPLZXWATKYY3OXXHDOU3TSIUNZA5ZVBMM6P6ONGZQJHICXSFGFWNBPW",
"PrivateKey": ""
},
"Asset": {
"Code": "XDUS",
"IssuserKey": "GAHQYF2BNR5PGXPMWHOPXQA2Y3T2HVBBBF7ON7D2427T7FPZRMIRE6XD"
},
"EntryName": "abcd",
"EntryValue": "1234"
}

Response: 200

Response Parameters
ParameterDescription

hash

String

A unique identifier representing the transaction hash of the ManageData operation.

Ex: "fbef2e61b8961114a285a8d1ba9c20076f13f636db4fc452dae64bf763390724"


{
"hash": "fbef2e61b8961114a285a8d1ba9c20076f13f636db4fc452dae64bf763390724"
}